home *** CD-ROM | disk | FTP | other *** search
- Path: lrz-muenchen.de!news
- From: watzka@stat.uni-muenchen.de (Kurt Watzka)
- Newsgroups: comp.lang.c
- Subject: Re: Limit on #bytes inside of struct?
- Date: 11 Feb 1996 10:34:36 GMT
- Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
- Distribution: world
- Message-ID: <4fkgns$8t9@sparcserver.lrz-muenchen.de>
- References: <4feg1d$d4g@cville-srv.wam.umd.edu> <4ffg6b$ivd@sparcserver.lrz-muenchen.de> <4ffohq$1gb@mordred.gatech.edu> <9602091718.AA18553@ues5.cern.ch>
- NNTP-Posting-Host: sun2.lrz-muenchen.de
-
- Dan Pop <danpop@ues5.cern.ch> writes:
-
- >james@amber.biology.gatech.edu (James McIninch) writes:
-
- >>ua302aa@lrz-muenchen.de wrote:
- >>: jsquires@wam.umd.edu (jeffrey d squires) writes:
- >>
- >>: >Is there a limit on the number of bytes allowed inside of a struct?
- >>
- >>: Yes, there is a limit on the number of bytes allowed in one
- >>: object. That limit is 32k.
- >>
- >>No. There is no limit. Individual implementations of compilers or OS's may
- >>impose a limit, but there is no limit that is integral to the C languag itself.
-
- >James is right. What the C language requires is that a compiler-imposed
- >limit for the size of an object cannot be lower than 32k.
-
- Yes, James is right, but you still cannot have objects of more than
- 32k in a _portable_ C program, so for portable programs there is
- a limit of 32k for the size of an object. You cannot rely on the
- assumption that all compilers will support larger objects.
-
- Kurt
- --
- | Kurt Watzka Phone : +49-89-2180-6254
- | watzka@stat.uni-muenchen.de
- | ua302aa@sunmail.lrz-muenchen.de
-